<?php
include("conf/tools.php");
$to ="itncomm@bkconnect.net,yash108@gmail.com,dilip@bkconnect.net";
$subject = $_POST["txtSubject"];
$body = "Dear Admin, \n";
$body .= " A user has contacted you through the website it.bkinfo.in\n. The following are the information. \n\n";
$body .= " Name  :".$_POST["txtName"]."\n";
$body .= " Email  :".$_POST["txtEmail"]."\n";
$body .= " Phone  :".$_POST["txtPhone"]."\n";
$body .= " Message  :".$_POST["txtMsg"]."\n\n";
$body .= "Regards  "."\nWeb Administrator"."";

$fromName="Brahma Kumaris - IT & Comm";
$fromemail="itncomm@bkconnect.net";

$header = "From: ". $Name . " <" . $fromemail . ">\r\n"; //optional headerfields
if (mail($to, $subject, $body,$header)) {
	feedback_thank($_POST["txtEmail"]);
	 $msgStatus="Thanks for contacting Brahma Kumaris, IT & Communications.
	<br/><br/>
	1. In future, kindly write mail to itncomm@bkconnect.net for any queries/suggestions<br/><br/>
	2. Visit or be in touch with web portal <a href='http://it.bkinfo.in'>http://it.bkinfo.in</a> for latest developments<br/><br/>
	3. Please spread the message by sharing  following websites:<br/><br/>
	<a href='http://www.brahmakumaris.com'>www.brahmakumaris.com</a><br/>
	<a href='http://www.bkwsu.org'>www.bkwsu.org</a><br/>
	<a href='http://www.godishere.in'>www.godishere.in</a><br/><br/>
	With regards & best wishes,<br/>
	IT & Communications,<br/>
	Brahma Kumaris.<br/>";
 } else {

   $msgStatus="<p>Message delivery failed...</p>";
 }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<!-- Design by Free CSS Templates http://www.freecsstemplates.org Released for free under a Creative Commons Attribution 2.5 License Name : Compromise Description: A two-column, fixed-width design with dark color scheme. Version : 1.0 Released : 20081103 -->
  <meta name="keywords" content="" />

  <meta name="description" content="" />

  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>Brahma Kumaris IT &amp; Communications</title>


  <link href="style.css" rel="stylesheet" type="text/css" media="screen" />

</head>


<body>

<div id="header">
</div>

<!-- end #header -->
<div id="menu">
<ul>

  <li><a href="index.html">Home</a></li>

  <li><a href="weare.html">Who We Are</a></li>

  <li><a href="register.html">Register / Membership</a></li>

  <li class="first"><a href="contactus.html">Contact
Us</a></li>

</ul>

</div>

<!-- end #menu -->
<div id="wrapper">
<div id="page">
<div id="content">
<div class="post">
<h1 class="title">Feedback </h1>

<div class="entry">
<?=$msgStatus?>

</div>

</div>

</div>

</div>

<!-- end #content -->
<div id="sidebar">
<ul>

  <li> <img style="width: 174px; height: 158px;" src="images/logo3.jpg" alt="BK ITC Logo" /></li>

  <li>
    <h2 style="font-weight: bold;">Announcements</h2>

  </li>

  <li>BK brothers &amp; BK sisters connected to 'Information
Technology &amp; Communications' and allied fields of Computers are
invited to a special event "BKs - India IT Meet"
from 10th to 12th March 2009. <a href="http://itmeet.bkinfo.in" target="_blank">Please
click here to Register to this special event.</a> </li>

</ul>

</div>

<!-- end #sidebar -->
<div style="clear: both;">&nbsp;</div>

</div>

<!-- end #page -->
<div id="footer">
<p>Brahma Kumaris IT &amp; Communications, Shantivan, Abu
Road, Rajasthan - 307510</p>
</div>
<script language="javascript">
function validateForm(vFormObject)
{

	var user_msg="";
	var emailfilter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
	if(vFormObject.txtName.value=="")
	{
		user_msg=  "Name cannot be empty. Please check.";
		
	}

	if(vFormObject.txtEmail.value!="")
	{
		
		if (!emailfilter.test(vFormObject.txtEmail.value)){

			user_msg ="Invalid Email address. Please check.";

		}
	}
	if(vFormObject.txtSubject.value=="")
	{
		
		user_msg ="Subject  cannot be empty. Please check.";
		
	}
	if(vFormObject.txtMsg.value=="")
	{
		
		user_msg ="Message content  cannot be empty. Please check.";
		
	}

	if(user_msg=="")
	{
		return true;
	}
	else
	{

		alert(user_msg);
		return false;
	}


}

</script>
<!-- end #footer -->
</body>
</html>
